<?php
namespace Admin\Controller;
use Think\Controller;
class GoodsImgController extends CommenController {
    function lists(){

}
function add(){

      if(IS_POST){
        //D ==NEW 实例化

     $id=$this->Model->add(I('post.'));
        // print_r($id);die;
        if ($id) {
         $this->success('操作完成',U('Admin/goods/lists'),1);
        }else{
        $this->error('操作失败','',2);
             }


      }


    $goods_type =D('spec')->select();
    $this->assign('spec',$goods_type);// 赋值分页输出
      $this->display();


}
+

}
